package ${config.packageName}entity;

import java.io.Serializable;
import java.util.Date;

import com.ftwj.demo.base.annotation.Column;
import com.ftwj.demo.base.annotation.Logic;
import com.ftwj.demo.base.annotation.Primarykey;
import com.ftwj.demo.base.annotation.QueryTable;
import com.ftwj.demo.base.annotation.Table;
import com.ftwj.demo.base.constant.QueryModel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
* <p>Title: ${className}Bean</p>  
* <p>Description: 描述</p>
* <p>Copyright: Copyright (c) 2020 </p>  
* <p>Company: ${config.company}</p>    
* @author ${config.author}
* @date ${.now?datetime?string("yyyy年MM月dd日 HH:mm:ss")}
* @version V1.0
*/
@Data
@Table(name="${tableName}")
@Accessors(chain=true)
@ApiModel(value="${className}Bean对象", description="")
public class ${className}Bean implements Serializable {

	/** serialVersionUID*/ 
	private static final long serialVersionUID = 1L;
	
	<#list columns as column>
	<#if column.isPrimaryKey==true>
 	@Primarykey<#if (column.columnName!=column.propertyName)>(name="${column.columnName}")</#if>
	</#if>
	<#if (column.columnName!=column.propertyName)&&column.isPrimaryKey!=true>
	@Column(name="${column.columnName}")
	</#if>
	<#if column.remarks!="">
	@ApiModelProperty(value = "${column.remarks}")
	</#if>
	private ${column.javaType} ${column.propertyName};
	</#list>
	
}